package com.init.mapper;

import com.init.model.entity.Items;
import com.init.model.entity.Categories;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Select;

import java.util.List;

/**
* @author Atanycosts
* @description 针对表【categories(存储大标题信息)】的数据库操作Mapper
* @createDate 2025-01-05 16:11:38
* @Entity com.init.model.entity.Categories
*/
public interface CategoriesMapper extends BaseMapper<Categories> {

    // 通过category_id 来找到所有
    @Select("SELECT * FROM items WHERE category_id = #{categoryId}")
    List<Items> selectAssessmentItemsByCategoryId(Integer categoryId);

}




